<!DOCTYPE html>

<html>
  <head>
    <title>Protocol Documentation</title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/>
    <style>
      body {
        width: 60em;
        margin: 1em auto;
        color: #222;
        font-family: "Ubuntu", sans-serif;
        padding-bottom: 4em;
      }

      h1 {
        font-weight: normal;
        border-bottom: 1px solid #aaa;
        padding-bottom: 0.5ex;
      }

      h2 {
        border-bottom: 1px solid #aaa;
        padding-bottom: 0.5ex;
        margin: 1.5em 0;
      }

      h3 {
        font-weight: normal;
        border-bottom: 1px solid #aaa;
        padding-bottom: 0.5ex;
      }

      a {
        text-decoration: none;
        color: #567e25;
      }

      table {
        width: 100%;
        font-size: 80%;
        border-collapse: collapse;
      }

      thead {
        font-weight: 700;
        background-color: #dcdcdc;
      }

      tbody tr:nth-child(even) {
        background-color: #fbfbfb;
      }

      td {
        border: 1px solid #ccc;
        padding: 0.5ex 2ex;
      }

      td p {
        text-indent: 1em;
        margin: 0;
      }

      td p:nth-child(1) {
        text-indent: 0;  
      }

       
      .field-table td:nth-child(1) {  
        width: 10em;
      }
      .field-table td:nth-child(2) {  
        width: 10em;
      }
      .field-table td:nth-child(3) {  
        width: 6em;
      }
      .field-table td:nth-child(4) {  
        width: auto;
      }

       
      .extension-table td:nth-child(1) {  
        width: 10em;
      }
      .extension-table td:nth-child(2) {  
        width: 10em;
      }
      .extension-table td:nth-child(3) {  
        width: 10em;
      }
      .extension-table td:nth-child(4) {  
        width: 5em;
      }
      .extension-table td:nth-child(5) {  
        width: auto;
      }

       
      .enum-table td:nth-child(1) {  
        width: 10em;
      }
      .enum-table td:nth-child(2) {  
        width: 10em;
      }
      .enum-table td:nth-child(3) {  
        width: auto;
      }

       
      .scalar-value-types-table tr {
        height: 3em;
      }

       
      #toc-container ul {
        list-style-type: none;
        padding-left: 1em;
        line-height: 180%;
        margin: 0;
      }
      #toc > li > a {
        font-weight: bold;
      }

       
      .file-heading {
        width: 100%;
        display: table;
        border-bottom: 1px solid #aaa;
        margin: 4em 0 1.5em 0;
      }
      .file-heading h2 {
        border: none;
        display: table-cell;
      }
      .file-heading a {
        text-align: right;
        display: table-cell;
      }

       
      .badge {
        width: 1.6em;
        height: 1.6em;
        display: inline-block;

        line-height: 1.6em;
        text-align: center;
        font-weight: bold;
        font-size: 60%;

        color: #89ba48;
        background-color: #dff0c8;

        margin: 0.5ex 1em 0.5ex -1em;
        border: 1px solid #fbfbfb;
        border-radius: 1ex;
      }
    </style>

    
    <link rel="stylesheet" type="text/css" href="stylesheet.css"/>
  </head>

  <body>

    <h1 id="title">Protocol Documentation</h1>

    <h2>Table of Contents</h2>

    <div id="toc-container">
      <ul id="toc">
        
          
          <li>
            <a href="#jmash%2fstorage%2fstorage_rpc.proto">jmash/storage/storage_rpc.proto</a>
            <ul>
              
              
              
              
                <li>
                  <a href="#jmash.storage.Storage"><span class="badge">S</span>Storage</a>
                </li>
              
            </ul>
          </li>
        
        <li><a href="#scalar-value-types">Scalar Value Types</a></li>
      </ul>
    </div>

    
      
      <div class="file-heading">
        <h2 id="jmash/storage/storage_rpc.proto">jmash/storage/storage_rpc.proto</h2><a href="#title">Top</a>
      </div>
      <p></p>

      

      

      

      
        <h3 id="jmash.storage.Storage">Storage</h3>
        <p>Storage Service</p>
        <table class="enum-table">
          <thead>
            <tr><td>Method Name</td><td>Request Type</td><td>Response Type</td><td>Description</td></tr>
          </thead>
          <tbody>
            
              <tr>
                <td>version</td>
                <td><a href="#google.protobuf.Empty">.google.protobuf.Empty</a></td>
                <td><a href="#google.protobuf.StringValue">.google.protobuf.StringValue</a></td>
                <td><p>版本</p></td>
              </tr>
            
              <tr>
                <td>findEnumList</td>
                <td><a href="#google.protobuf.StringValue">.google.protobuf.StringValue</a></td>
                <td><a href="#jmash.protobuf.EnumValueList">.jmash.protobuf.EnumValueList</a></td>
                <td><p>枚举值列表</p></td>
              </tr>
            
              <tr>
                <td>findEnumMap</td>
                <td><a href="#google.protobuf.StringValue">.google.protobuf.StringValue</a></td>
                <td><a href="#jmash.protobuf.CustomEnumValueMap">.jmash.protobuf.CustomEnumValueMap</a></td>
                <td><p>枚举值Map</p></td>
              </tr>
            
              <tr>
                <td>findEnumEntry</td>
                <td><a href="#jmash.protobuf.EnumEntryReq">.jmash.protobuf.EnumEntryReq</a></td>
                <td><a href="#jmash.protobuf.EntryList">.jmash.protobuf.EntryList</a></td>
                <td><p>枚举值</p></td>
              </tr>
            
              <tr>
                <td>updateLogLevel</td>
                <td><a href="#jmash.protobuf.LogLevelReq">.jmash.protobuf.LogLevelReq</a></td>
                <td><a href="#google.protobuf.BoolValue">.google.protobuf.BoolValue</a></td>
                <td><p>日志输出级别调整</p></td>
              </tr>
            
              <tr>
                <td>updateStorageOrganBrowser</td>
                <td><a href="#jmash.storage.StorageOrganBrowserUpdateReq">StorageOrganBrowserUpdateReq</a></td>
                <td><a href="#jmash.storage.StorageOrganBrowserModel">StorageOrganBrowserModel</a></td>
                <td><p>修改组织浏览信息</p></td>
              </tr>
            
              <tr>
                <td>findMyStorageOrganBrowseList</td>
                <td><a href="#jmash.storage.MyStorageOrganReq">MyStorageOrganReq</a></td>
                <td><a href="#jmash.storage.StorageOrganInfoList">StorageOrganInfoList</a></td>
                <td><p>查询我的浏览信息列表</p></td>
              </tr>
            
              <tr>
                <td>findMyStorageOrganList</td>
                <td><a href="#jmash.storage.MyStorageOrganReq">MyStorageOrganReq</a></td>
                <td><a href="#jmash.storage.StorageOrganInfoList">StorageOrganInfoList</a></td>
                <td><p>查询我的组织列表（登录用）</p></td>
              </tr>
            
              <tr>
                <td>findMyDefaultStorageOrgan</td>
                <td><a href="#jmash.storage.MyStorageOrganReq">MyStorageOrganReq</a></td>
                <td><a href="#jmash.storage.StorageOrganInfoModel">StorageOrganInfoModel</a></td>
                <td><p>查询我的默认组织（默认选择）</p></td>
              </tr>
            
              <tr>
                <td>defaultMyStorageOrgan</td>
                <td><a href="#jmash.storage.MyStorageOrganDefaultReq">MyStorageOrganDefaultReq</a></td>
                <td><a href="#jmash.storage.StorageOrganInfoModel">StorageOrganInfoModel</a></td>
                <td><p>设置我的默认组织</p></td>
              </tr>
            
              <tr>
                <td>findStorageOrganInfoPage</td>
                <td><a href="#jmash.storage.StorageOrganInfoReq">StorageOrganInfoReq</a></td>
                <td><a href="#jmash.storage.StorageOrganInfoPage">StorageOrganInfoPage</a></td>
                <td><p>查询翻页信息</p></td>
              </tr>
            
              <tr>
                <td>findStorageOrganInfoList</td>
                <td><a href="#jmash.storage.StorageOrganInfoReq">StorageOrganInfoReq</a></td>
                <td><a href="#jmash.storage.StorageOrganInfoList">StorageOrganInfoList</a></td>
                <td><p>查询列表信息</p></td>
              </tr>
            
              <tr>
                <td>findStorageOrganInfoById</td>
                <td><a href="#jmash.storage.StorageOrganInfoKey">StorageOrganInfoKey</a></td>
                <td><a href="#jmash.storage.StorageOrganInfoModel">StorageOrganInfoModel</a></td>
                <td><p>查询</p></td>
              </tr>
            
              <tr>
                <td>createStorageOrganInfo</td>
                <td><a href="#jmash.storage.StorageOrganInfoCreateReq">StorageOrganInfoCreateReq</a></td>
                <td><a href="#jmash.storage.StorageOrganInfoModel">StorageOrganInfoModel</a></td>
                <td><p>创建实体</p></td>
              </tr>
            
              <tr>
                <td>updateStorageOrganInfo</td>
                <td><a href="#jmash.storage.StorageOrganInfoUpdateReq">StorageOrganInfoUpdateReq</a></td>
                <td><a href="#jmash.storage.StorageOrganInfoModel">StorageOrganInfoModel</a></td>
                <td><p>修改实体</p></td>
              </tr>
            
              <tr>
                <td>enableStorageOrganInfo</td>
                <td><a href="#jmash.storage.StorageOrganInfoEnableKey">StorageOrganInfoEnableKey</a></td>
                <td><a href="#google.protobuf.BoolValue">.google.protobuf.BoolValue</a></td>
                <td><p>启用/禁用</p></td>
              </tr>
            
              <tr>
                <td>deleteStorageOrganInfo</td>
                <td><a href="#jmash.storage.StorageOrganInfoKey">StorageOrganInfoKey</a></td>
                <td><a href="#jmash.storage.StorageOrganInfoModel">StorageOrganInfoModel</a></td>
                <td><p>删除</p></td>
              </tr>
            
              <tr>
                <td>deleteStorageOrgan</td>
                <td><a href="#jmash.storage.StorageOrganKey">StorageOrganKey</a></td>
                <td><a href="#google.protobuf.Int32Value">.google.protobuf.Int32Value</a></td>
                <td><p>删除组织(通过组织ID、服务类型)</p></td>
              </tr>
            
              <tr>
                <td>existStorageOrganUser</td>
                <td><a href="#jmash.storage.StorageOrganUserKey">StorageOrganUserKey</a></td>
                <td><a href="#google.protobuf.BoolValue">.google.protobuf.BoolValue</a></td>
                <td><p>是否存在组织关系</p></td>
              </tr>
            
              <tr>
                <td>createStorageOrganUser</td>
                <td><a href="#jmash.storage.StorageOrganUserCreateReq">StorageOrganUserCreateReq</a></td>
                <td><a href="#jmash.storage.StorageOrganUserModel">StorageOrganUserModel</a></td>
                <td><p>创建组织关系</p></td>
              </tr>
            
              <tr>
                <td>deleteStorageOrganUser</td>
                <td><a href="#jmash.storage.StorageOrganUserKey">StorageOrganUserKey</a></td>
                <td><a href="#jmash.storage.StorageOrganUserModel">StorageOrganUserModel</a></td>
                <td><p>删除组织关系</p></td>
              </tr>
            
          </tbody>
        </table>

        
          
          
          <h4>Methods with HTTP bindings</h4>
          <table>
            <thead>
              <tr>
                <td>Method Name</td>
                <td>Method</td>
                <td>Pattern</td>
                <td>Body</td>
              </tr>
            </thead>
            <tbody>
            
              
              
              <tr>
                <td>version</td>
                <td>GET</td>
                <td>/v1/storage/version</td>
                <td></td>
              </tr>
              
            
              
              
              <tr>
                <td>findEnumEntry</td>
                <td>GET</td>
                <td>/v1/storage/enum/entry</td>
                <td></td>
              </tr>
              
            
              
              
              <tr>
                <td>updateLogLevel</td>
                <td>PUT</td>
                <td>/v1/storage/log/level</td>
                <td>*</td>
              </tr>
              
            
              
              
              <tr>
                <td>updateStorageOrganBrowser</td>
                <td>PATCH</td>
                <td>/v1/front/storage/storage_organ_browser/browse</td>
                <td>*</td>
              </tr>
              
            
              
              
              <tr>
                <td>findMyStorageOrganBrowseList</td>
                <td>GET</td>
                <td>/v1/front/storage/storage_organ_browser/my_list/{tenant}</td>
                <td></td>
              </tr>
              
            
              
              
              <tr>
                <td>findMyStorageOrganList</td>
                <td>GET</td>
                <td>/v1/storage/storage_organ/my_list/{tenant}</td>
                <td></td>
              </tr>
              
            
              
              
              <tr>
                <td>findMyDefaultStorageOrgan</td>
                <td>GET</td>
                <td>/v1/storage/storage_organ/my_default/{tenant}</td>
                <td></td>
              </tr>
              
            
              
              
              <tr>
                <td>defaultMyStorageOrgan</td>
                <td>PATCH</td>
                <td>/v1/storage/storage_organ/my_default</td>
                <td>*</td>
              </tr>
              
            
              
              
              <tr>
                <td>findStorageOrganInfoPage</td>
                <td>GET</td>
                <td>/v1/storage/storage_organ_info/page/{tenant}</td>
                <td></td>
              </tr>
              
            
              
              
              <tr>
                <td>findStorageOrganInfoList</td>
                <td>GET</td>
                <td>/v1/storage/storage_organ_info/list/{tenant}</td>
                <td></td>
              </tr>
              
            
              
              
              <tr>
                <td>findStorageOrganInfoById</td>
                <td>GET</td>
                <td>/v1/storage/storage_organ_info/id/{tenant}/{storage_id}</td>
                <td></td>
              </tr>
              
            
            </tbody>
          </table>
          
        
    

    <h2 id="scalar-value-types">Scalar Value Types</h2>
    <table class="scalar-value-types-table">
      <thead>
        <tr><td>.proto Type</td><td>Notes</td><td>C++</td><td>Java</td><td>Python</td><td>Go</td><td>C#</td><td>PHP</td><td>Ruby</td></tr>
      </thead>
      <tbody>
        
          <tr id="double">
            <td>double</td>
            <td></td>
            <td>double</td>
            <td>double</td>
            <td>float</td>
            <td>float64</td>
            <td>double</td>
            <td>float</td>
            <td>Float</td>
          </tr>
        
          <tr id="float">
            <td>float</td>
            <td></td>
            <td>float</td>
            <td>float</td>
            <td>float</td>
            <td>float32</td>
            <td>float</td>
            <td>float</td>
            <td>Float</td>
          </tr>
        
          <tr id="int32">
            <td>int32</td>
            <td>Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.</td>
            <td>int32</td>
            <td>int</td>
            <td>int</td>
            <td>int32</td>
            <td>int</td>
            <td>integer</td>
            <td>Bignum or Fixnum (as required)</td>
          </tr>
        
          <tr id="int64">
            <td>int64</td>
            <td>Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.</td>
            <td>int64</td>
            <td>long</td>
            <td>int/long</td>
            <td>int64</td>
            <td>long</td>
            <td>integer/string</td>
            <td>Bignum</td>
          </tr>
        
          <tr id="uint32">
            <td>uint32</td>
            <td>Uses variable-length encoding.</td>
            <td>uint32</td>
            <td>int</td>
            <td>int/long</td>
            <td>uint32</td>
            <td>uint</td>
            <td>integer</td>
            <td>Bignum or Fixnum (as required)</td>
          </tr>
        
          <tr id="uint64">
            <td>uint64</td>
            <td>Uses variable-length encoding.</td>
            <td>uint64</td>
            <td>long</td>
            <td>int/long</td>
            <td>uint64</td>
            <td>ulong</td>
            <td>integer/string</td>
            <td>Bignum or Fixnum (as required)</td>
          </tr>
        
          <tr id="sint32">
            <td>sint32</td>
            <td>Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.</td>
            <td>int32</td>
            <td>int</td>
            <td>int</td>
            <td>int32</td>
            <td>int</td>
            <td>integer</td>
            <td>Bignum or Fixnum (as required)</td>
          </tr>
        
          <tr id="sint64">
            <td>sint64</td>
            <td>Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.</td>
            <td>int64</td>
            <td>long</td>
            <td>int/long</td>
            <td>int64</td>
            <td>long</td>
            <td>integer/string</td>
            <td>Bignum</td>
          </tr>
        
          <tr id="fixed32">
            <td>fixed32</td>
            <td>Always four bytes. More efficient than uint32 if values are often greater than 2^28.</td>
            <td>uint32</td>
            <td>int</td>
            <td>int</td>
            <td>uint32</td>
            <td>uint</td>
            <td>integer</td>
            <td>Bignum or Fixnum (as required)</td>
          </tr>
        
          <tr id="fixed64">
            <td>fixed64</td>
            <td>Always eight bytes. More efficient than uint64 if values are often greater than 2^56.</td>
            <td>uint64</td>
            <td>long</td>
            <td>int/long</td>
            <td>uint64</td>
            <td>ulong</td>
            <td>integer/string</td>
            <td>Bignum</td>
          </tr>
        
          <tr id="sfixed32">
            <td>sfixed32</td>
            <td>Always four bytes.</td>
            <td>int32</td>
            <td>int</td>
            <td>int</td>
            <td>int32</td>
            <td>int</td>
            <td>integer</td>
            <td>Bignum or Fixnum (as required)</td>
          </tr>
        
          <tr id="sfixed64">
            <td>sfixed64</td>
            <td>Always eight bytes.</td>
            <td>int64</td>
            <td>long</td>
            <td>int/long</td>
            <td>int64</td>
            <td>long</td>
            <td>integer/string</td>
            <td>Bignum</td>
          </tr>
        
          <tr id="bool">
            <td>bool</td>
            <td></td>
            <td>bool</td>
            <td>boolean</td>
            <td>boolean</td>
            <td>bool</td>
            <td>bool</td>
            <td>boolean</td>
            <td>TrueClass/FalseClass</td>
          </tr>
        
          <tr id="string">
            <td>string</td>
            <td>A string must always contain UTF-8 encoded or 7-bit ASCII text.</td>
            <td>string</td>
            <td>String</td>
            <td>str/unicode</td>
            <td>string</td>
            <td>string</td>
            <td>string</td>
            <td>String (UTF-8)</td>
          </tr>
        
          <tr id="bytes">
            <td>bytes</td>
            <td>May contain any arbitrary sequence of bytes.</td>
            <td>string</td>
            <td>ByteString</td>
            <td>str</td>
            <td>[]byte</td>
            <td>ByteString</td>
            <td>string</td>
            <td>String (ASCII-8BIT)</td>
          </tr>
        
      </tbody>
    </table>
  </body>
</html>

